/*
 Navicat Premium Data Transfer

 Source Server         : local
 Source Server Type    : MySQL
 Source Server Version : 80026
 Source Host           : localhost:3306
 Source Schema         : library

 Target Server Type    : MySQL
 Target Server Version : 80026
 File Encoding         : 65001

 Date: 03/09/2021 11:37:38
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for book
-- ----------------------------
DROP TABLE IF EXISTS `book`;
CREATE TABLE `book` (
  `Id` int NOT NULL AUTO_INCREMENT,
  `Name` varchar(255) NOT NULL,
  `Price` decimal(18,2) NOT NULL,
  `Author` varchar(32) NOT NULL,
  `MakeSource` varchar(255) NOT NULL,
  `book_category_id` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  `Inventory` int NOT NULL,
  `Is_deleted` tinyint(1) NOT NULL DEFAULT '0',
  `Is_sold_out` tinyint(1) NOT NULL DEFAULT '0',
  `created_date` datetime NOT NULL,
  `updated_date` datetime DEFAULT NULL,
  `created_time` datetime DEFAULT NULL,
  `updated_time` datetime DEFAULT NULL,
  `deleted_time` datetime DEFAULT NULL,
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3;

-- ----------------------------
-- Records of book
-- ----------------------------
BEGIN;
INSERT INTO `book` VALUES (1, 'ES 6标准入门', 69.00, '阮一峰', '人民报社出版社', '1', 5, 0, 0, '2018-10-05 00:00:00', NULL, NULL, NULL, NULL);
INSERT INTO `book` VALUES (3, 'ES 6标准入门', 69.00, '阮一峰', '人民报社出版社', '1', 5, 0, 0, '2018-10-05 00:00:00', NULL, NULL, NULL, NULL);
INSERT INTO `book` VALUES (4, '测试图书', 12.34, 'TEST', 'TEST', '2', 22, 0, 1, '2019-10-29 10:00:00', '2019-10-30 20:19:52', NULL, NULL, NULL);
INSERT INTO `book` VALUES (5, 'string', 48.00, 'string', 'string', '1', 512, 1, 1, '2019-10-29 10:00:00', '2019-10-30 20:14:07', NULL, NULL, NULL);
INSERT INTO `book` VALUES (6, 'javascript', 80.00, 'Zero', 'Zero', '1', 60, 0, 1, '2019-10-30 20:23:22', '2019-10-30 20:23:30', NULL, NULL, NULL);
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
